import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author zxs
 * @create 2021-03-30 23:33
 */
public class MainClass {
    public static void main(String[] args) {

        Runnable runnable = new MyRunnable();
        Runnable runnable1 = new MyRunnable();

        ExecutorService threadPool = Executors.newCachedThreadPool();
        threadPool.execute(runnable);
        threadPool.execute(runnable1);

        threadPool.shutdown();
    }
}
